package vk.message.gui.component;

import android.content.Context;

public class TabButtonFactory {
    public static BottomTabButton getBottomTabButton(Context context, int image, String text) {
        BottomTabButton button = new BottomTabButton(context);
        button.getPictureImageView().setImageDrawable(context.getResources().getDrawable(image));
        button.getNameTextView().setText(text);
        return button;
    }

    public static TopTabButton getTopTabButton(Context context, String text) {
        TopTabButton button = new TopTabButton(context);
        button.getNameTextView().setText(text);
        return button;
    }
}
